﻿<Window x:Class="WpfAppDuplexClient.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition  Height="30"/>
			<RowDefinition Height="32"/>
			<RowDefinition />
		</Grid.RowDefinitions>
		<StackPanel Orientation="Horizontal">
			<TextBlock Text="Add your name here:" />
			<TextBox x:Name="txtUserId" Width="120" Margin="2,0,0,0"/>
			<Button x:Name="btnJoin" Click="btnJoin_Click" Content="Join" Margin="2,0,0,0" Width="50"/>
			<Button x:Name="btnLeave" Click="btnLeave_Click" Content="Leave" Margin="2,0,0,0" Width="50" ToolTip="To leave chat press this button"/>
		</StackPanel>
		<StackPanel Grid.Row="1" Orientation="Horizontal">
			<TextBlock Text="Enter message text:"/>
			<TextBox x:Name="txtMessage" Width="280" />
			<Button x:Name="btnSendMess" Click="btnSendMess_Click" Content="Send" Width="40"/>
		</StackPanel>
		<ListBox x:Name="listMsgs" Grid.Row="2"/>
	</Grid>
</Window>
